/*
 * P1.c
 *
 *  Created on: 08/apr/2014
 *      Author: Gabriel
 */

#include <stdio.h>
#include <stdlib.h>
#include "P1.h"

int max(int a,int b){

	int massimo;

	if(a<b)
		massimo=b;
		else
			massimo=a;

	return massimo;
}

int fattoriale(int a){
	int r=1,i;
	for (i=a;i>=1;i--){
		r=r*i;
	}
	return r;
}
